﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ExcelToJson
{
    /// <summary>Excel结构枚举</summary>
    public enum EnumExcelStruct
    {
        /// <summary>描述</summary>
        Description = 0,
        /// <summary>字段名</summary>
        Field,
        /// <summary>类型</summary>
        Type,
        /// <summary>平台</summary>
        Platform,
        /// <summary>数据</summary>
        Data,
    }

    /// <summary>前后端类型</summary>
    public enum PlatformType
    {
        /// <summary>空</summary>
        None = 0,
        /// <summary>客户端</summary>
        Client,
        /// <summary>服务器</summary>
        Server,
    }

    /// <summary>前后端定义</summary>
    public class PlatformDefine
    {
        public static string cCSKey { get { return "client/server"; } }
        public static string cCKey { get { return "client"; } }
        public static string cSKey { get { return "server"; } }
    }

    public class TypeDefine
    {
        public const string cBool = "bool";
        public const string cBoolArray = "bool[]";
        public const string cInt = "int";
        public const string cIntArray = "int[]";
        public const string cFloat = "float";
        public const string cFloatArray = "float[]";
        public const string cString = "string";
        public const string cStringArray = "string[]";
    }
}